import serial
ser = serial.Serial('/dev/ttyACM0', 57600, timeout=1)
#ser.open()
print(ser.is_open)

print("port %s is open at a rate of %d" % (ser.name, ser.baudrate))
ser.write(b'hello')
ser.close()
